home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form frmList
- BackColor = &H00C0C0C0&
- BorderStyle = 3 'Fixed Double
- Caption = "Demo av listrutor"
- ClientHeight = 2325
- ClientLeft = 1095
- ClientTop = 1485
- ClientWidth = 5130
- ClipControls = 0 'False
- Height = 2730
- Left = 1035
- LinkTopic = "Form1"
- ScaleHeight = 2325
- ScaleWidth = 5130
- Top = 1140
- Width = 5250
- Begin PictureBox picLP
- AutoSize = -1 'True
- BorderStyle = 0 'None
- Height = 180
- Left = 3090
- Picture = CLIST.FRX:0000
- ScaleHeight = 180
- ScaleWidth = 240
- TabIndex = 9
- Top = 2160
- Visible = 0 'False
- Width = 240
- End
- Begin CUACommand cmdHelp
- Caption = "Help"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 600
- Left = 3855
- Picture = CLIST.FRX:00DA
- TabIndex = 5
- Top = 1515
- Width = 1080
- End
- Begin CUACommand cmdCancel
- Cancel = -1 'True
- Caption = "Cancel"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 600
- Left = 3855
- Picture = CLIST.FRX:02A4
- TabIndex = 4
- Top = 855
- Width = 1080
- End
- Begin PictureBox picIcon
- AutoSize = -1 'True
- BorderStyle = 0 'None
- Height = 480
- Left = 2550
- Picture = CLIST.FRX:046E
- ScaleHeight = 480
- ScaleWidth = 480
- TabIndex = 8
- Top = 2160
- Visible = 0 'False
- Width = 480
- End
- Begin PictureBox picTT
- AutoSize = -1 'True
- BorderStyle = 0 'None
- Height = 180
- Left = 3405
- Picture = CLIST.FRX:0770
- ScaleHeight = 180
- ScaleWidth = 240
- TabIndex = 7
- Top = 2160
- Visible = 0 'False
- Width = 240
- End
- Begin CUACommand cmdOK
- Caption = "OK"
- Default = -1 'True
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 600
- Left = 3855
- Picture = CLIST.FRX:084A
- TabIndex = 3
- Top = 195
- Width = 1080
- End
- Begin CUAFrame ZFrame5
- BackColor = &H00C0C0C0&
- BorderStyle = 7 'Inset single
- Caption = "Font"
- Height = 1275
- Left = 195
- TabIndex = 0
- Top = 855
- Width = 3375
- Begin CUAList lstFont
- BorderStyle = 3 'Inset
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 810
- Index = 0
- Left = 135
- ListColBound = 8623
- Sorted = -1 'True
- TabIndex = 1
- Top = 345
- Width = 2310
- End
- Begin CUAList lstFont
- BorderStyle = 3 'Inset
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 810
- Index = 1
- Left = 2565
- TabIndex = 2
- Top = 345
- Width = 675
- End
- End
- Begin CUALabel lbl
- BackColor = &H00C0C0C0&
- BackStyle = 1 'Opaque
- Caption = "List boxes can be bound to a database, may contain images - each row may have it's own. It also supports 3D effects."
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00000080&
- Height = 615
- Index = 6
- Left = 210
- TabIndex = 6
- Top = 165
- Width = 3315
- End
- Option Explicit
- Sub cmdCancel_Click ()
- Unload Me
- End Sub
- Sub cmdOK_Click ()
- Unload Me
- End Sub
- Sub Form_Load ()
- Dim i As Integer
- ' L
- gg till en ny rad i listan
- lstFont(0).AddItem "Courier New"
- lstFont(0).ListPicture(lstFont(0).NewIndex) = picTT
- lstFont(0).AddItem "Times New Roman"
- lstFont(0).ListPicture(lstFont(0).NewIndex) = picTT
- lstFont(0).AddItem "Arial"
- lstFont(0).ListPicture(lstFont(0).NewIndex) = picTT
- lstFont(0).AddItem "Lineprinter"
- lstFont(0).ListPicture(lstFont(0).NewIndex) = picLP
- lstFont(0).AddItem "Bodoni"
- lstFont(0).ListPicture(lstFont(0).NewIndex) = picLP
- lstFont(0).AddItem "Avant Garde"
- lstFont(0).ListPicture(lstFont(0).NewIndex) = picIcon
- lstFont(0).AddItem "Wingdings"
- lstFont(0).ListPicture(lstFont(0).NewIndex) = picIcon
- ' Fyll p
- med simulerade storlekar
- For i = 6 To 24 Step 2
- lstFont(1).AddItem Str$(i)
- Next
- End Sub
-